package com.hlf.modules.merchant.bank.service.impl;


import com.hlf.common.constants.Constants;
import com.hlf.modules.merchant.bank.entity.BranchBank;
import com.hlf.modules.merchant.bank.mapper.BranchBankMapper;
import com.hlf.modules.merchant.bank.service.BranchBankService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BranchBankServiceImpl implements BranchBankService {

	@Autowired
	private BranchBankMapper branchBankMapper;
	
	@Override
	public String deleteByPrimaryKey(Integer id) {
		branchBankMapper.deleteByPrimaryKey(id);
		return Constants.DEFAULT_MSG_SUCCESS;
	}

	@Override
	public String insert(BranchBank record) {
		branchBankMapper.insert(record);
		return Constants.DEFAULT_MSG_SUCCESS;
	}

	@Override
	public String insertSelective(BranchBank record) {
		branchBankMapper.insertSelective(record);
		return Constants.DEFAULT_MSG_SUCCESS;
	}

	@Override
	public BranchBank selectByPrimaryKey(Integer id) {
		return branchBankMapper.selectByPrimaryKey(id);
	}

	@Override
	public String updateByPrimaryKeySelective(BranchBank record) {
		branchBankMapper.updateByPrimaryKeySelective(record);
		return Constants.DEFAULT_MSG_SUCCESS;
	}

	@Override
	public String updateByPrimaryKey(BranchBank record) {
		branchBankMapper.updateByPrimaryKey(record);
		return Constants.DEFAULT_MSG_SUCCESS;
	}

	@Override
	public List<BranchBank> selectByProviceAndCity(BranchBank record) {
		return branchBankMapper.selectByProviceAndCity(record);
	}

    @Override
    public BranchBank selectById(int i) {
		return branchBankMapper.selectById(i);
    }

}
